package com.itheima.reggie.service.impl;

import com.itheima.reggie.entity.DishFlavor;
import com.itheima.reggie.mapper.DishFlavorMapper;
import com.itheima.reggie.service.DishFlavorService;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;


@Service
@Slf4j
public class DishFlavorServiceImpl implements DishFlavorService {

    @Autowired
    private DishFlavorMapper dishFlavorMapper;

    @Override
    public void insert(DishFlavor flavor) {
        dishFlavorMapper.insert(flavor);
    }

    @Override
    public void deleteByDishId(String id) {
        dishFlavorMapper.deleteByDishId(id);
    }
}
